package com.ruoyi.gybj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gybj.mapper.AlarmDelRecordMapper;
import com.ruoyi.gybj.domain.AlarmDelRecord;
import com.ruoyi.gybj.service.IAlarmDelRecordService;

/**
 * 报警删除记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-19
 */
@Service
public class AlarmDelRecordServiceImpl implements IAlarmDelRecordService 
{
    @Autowired
    private AlarmDelRecordMapper alarmDelRecordMapper;

    /**
     * 查询报警删除记录
     * 
     * @param id 报警删除记录主键
     * @return 报警删除记录
     */
    @Override
    public AlarmDelRecord selectAlarmDelRecordById(Long id)
    {
        return alarmDelRecordMapper.selectAlarmDelRecordById(id);
    }

    /**
     * 查询报警删除记录列表
     * 
     * @param alarmDelRecord 报警删除记录
     * @return 报警删除记录
     */
    @Override
    public List<AlarmDelRecord> selectAlarmDelRecordList(AlarmDelRecord alarmDelRecord)
    {
        return alarmDelRecordMapper.selectAlarmDelRecordList(alarmDelRecord);
    }

    /**
     * 新增报警删除记录
     * 
     * @param alarmDelRecord 报警删除记录
     * @return 结果
     */
    @Override
    public int insertAlarmDelRecord(AlarmDelRecord alarmDelRecord)
    {
        return alarmDelRecordMapper.insertAlarmDelRecord(alarmDelRecord);
    }

    /**
     * 修改报警删除记录
     * 
     * @param alarmDelRecord 报警删除记录
     * @return 结果
     */
    @Override
    public int updateAlarmDelRecord(AlarmDelRecord alarmDelRecord)
    {
        return alarmDelRecordMapper.updateAlarmDelRecord(alarmDelRecord);
    }

    /**
     * 批量删除报警删除记录
     * 
     * @param ids 需要删除的报警删除记录主键
     * @return 结果
     */
    @Override
    public int deleteAlarmDelRecordByIds(Long[] ids)
    {
        return alarmDelRecordMapper.deleteAlarmDelRecordByIds(ids);
    }

    /**
     * 删除报警删除记录信息
     * 
     * @param id 报警删除记录主键
     * @return 结果
     */
    @Override
    public int deleteAlarmDelRecordById(Long id)
    {
        return alarmDelRecordMapper.deleteAlarmDelRecordById(id);
    }
}
